<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%recommend_position}}".
 *
 * @property int $id
 * @property string $section
 * @property int $type
 * @property int $position
 * @property int $order
 * @property string $keywords
 * @property string $description
 * @property int $status
 * @property string $date_added
 */
class RecommendPosition extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%recommend_position}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['type', 'position', 'order', 'status'], 'integer'],
            [['date_added'], 'safe'],
            [['section'], 'string', 'max' => 50],
            [['keywords', 'description'], 'string', 'max' => 500],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'section' => Yii::t('app', 'Section'),
            'type' => Yii::t('app', 'Type'),
            'position' => Yii::t('app', 'Position'),
            'order' => Yii::t('app', 'Order'),
            'keywords' => Yii::t('app', 'Keywords'),
            'description' => Yii::t('app', 'Description'),
            'status' => Yii::t('app', 'Status'),
            'date_added' => Yii::t('app', 'Date Added'),
        ];
    }
}
